package design_pattern.ActiveObjects;

/**
 * @Author: 蔡翔
 * @Date: 2019/11/22 13:33
 * @Version 1.0
 */
/**
 * 对应 ActiveObject 的每一个方法
 **/
public abstract class MethodRequest {
    protected final Servant servant;

    protected final FutureResult futureResult;

    public MethodRequest(Servant servant,FutureResult futureResult){
        this.servant = servant;
        this.futureResult = futureResult;
    }



    public abstract void execute();
}
